package io.sage.modules.employer.service;

import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import io.sage.common.utils.PageUtils;
import io.sage.modules.employer.entity.Employer;
import io.sage.modules.sys.entity.SysDeptEntity;
import io.sage.modules.sys.entity.SysUserEntity;

/**
 * 
 *
 * @author xujh
 * @email jhang_mail@163.com
 * @date 2018-07-09 13:48:15
 */
public interface EmployerService {

    PageUtils queryPage(Map<String, Object> params);
    
    /**
     * 查询学生list.
     * @param page
     * @param params
     * @return
     */
    PageUtils selectStudentList(Map<String, Object> params);
    
    List<Employer> selectStudentLists(Map<String, Object> params);
    /**
     * 根据id查找学生信息.
     * @param id
     * @return
     */
    Employer selectByPrimaryKey(Integer id);
    /**
     * 密码重置.
     * @param id
     * @return
     */
    int reset(Integer id);
    /**
     * 保存学生.
     * @param record
     * @return
     */
    int insert(Employer record, SysUserEntity user);
    /**
     * 更改学生信息.
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Employer record);
    
    /**
     * 批量删除.
     * @param ids
     * @return
     */
    int deleteBatchIds(Integer[] ids);
    /**
     * 批量添加.
     * @param attachmentTables
     * @return
     */
    int insertByBatch(List<Employer> attachmentTables);
    
    List<String> getStudentList(Map<String, Object> params);

    /**
     * 批量导入.
     */
    Map<String,Object> importStudents(MultipartFile file, Integer unitId, SysUserEntity user, SysDeptEntity dept, Integer majorRoleId, Integer useTimeTypeCode);

    /**
     * 根据名字查询数据.
     * @param userName
     * @return
     */
    Employer selectByUserName(String userName);

	int updateByState(Employer student);

}

